package com.HuangJiaQing.www.model;

import java.util.ArrayList;
import java.util.List;

public class MarketersExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MarketersExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMarketersIdIsNull() {
            addCriterion("marketers_id is null");
            return (Criteria) this;
        }

        public Criteria andMarketersIdIsNotNull() {
            addCriterion("marketers_id is not null");
            return (Criteria) this;
        }

        public Criteria andMarketersIdEqualTo(Integer value) {
            addCriterion("marketers_id =", value, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersIdNotEqualTo(Integer value) {
            addCriterion("marketers_id <>", value, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersIdGreaterThan(Integer value) {
            addCriterion("marketers_id >", value, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("marketers_id >=", value, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersIdLessThan(Integer value) {
            addCriterion("marketers_id <", value, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersIdLessThanOrEqualTo(Integer value) {
            addCriterion("marketers_id <=", value, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersIdIn(List<Integer> values) {
            addCriterion("marketers_id in", values, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersIdNotIn(List<Integer> values) {
            addCriterion("marketers_id not in", values, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersIdBetween(Integer value1, Integer value2) {
            addCriterion("marketers_id between", value1, value2, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersIdNotBetween(Integer value1, Integer value2) {
            addCriterion("marketers_id not between", value1, value2, "marketersId");
            return (Criteria) this;
        }

        public Criteria andMarketersNameIsNull() {
            addCriterion("marketers_name is null");
            return (Criteria) this;
        }

        public Criteria andMarketersNameIsNotNull() {
            addCriterion("marketers_name is not null");
            return (Criteria) this;
        }

        public Criteria andMarketersNameEqualTo(String value) {
            addCriterion("marketers_name =", value, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameNotEqualTo(String value) {
            addCriterion("marketers_name <>", value, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameGreaterThan(String value) {
            addCriterion("marketers_name >", value, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameGreaterThanOrEqualTo(String value) {
            addCriterion("marketers_name >=", value, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameLessThan(String value) {
            addCriterion("marketers_name <", value, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameLessThanOrEqualTo(String value) {
            addCriterion("marketers_name <=", value, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameLike(String value) {
            addCriterion("marketers_name like", value, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameNotLike(String value) {
            addCriterion("marketers_name not like", value, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameIn(List<String> values) {
            addCriterion("marketers_name in", values, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameNotIn(List<String> values) {
            addCriterion("marketers_name not in", values, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameBetween(String value1, String value2) {
            addCriterion("marketers_name between", value1, value2, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersNameNotBetween(String value1, String value2) {
            addCriterion("marketers_name not between", value1, value2, "marketersName");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordIsNull() {
            addCriterion("marketers_password is null");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordIsNotNull() {
            addCriterion("marketers_password is not null");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordEqualTo(String value) {
            addCriterion("marketers_password =", value, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordNotEqualTo(String value) {
            addCriterion("marketers_password <>", value, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordGreaterThan(String value) {
            addCriterion("marketers_password >", value, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("marketers_password >=", value, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordLessThan(String value) {
            addCriterion("marketers_password <", value, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordLessThanOrEqualTo(String value) {
            addCriterion("marketers_password <=", value, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordLike(String value) {
            addCriterion("marketers_password like", value, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordNotLike(String value) {
            addCriterion("marketers_password not like", value, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordIn(List<String> values) {
            addCriterion("marketers_password in", values, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordNotIn(List<String> values) {
            addCriterion("marketers_password not in", values, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordBetween(String value1, String value2) {
            addCriterion("marketers_password between", value1, value2, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andMarketersPasswordNotBetween(String value1, String value2) {
            addCriterion("marketers_password not between", value1, value2, "marketersPassword");
            return (Criteria) this;
        }

        public Criteria andAvatarIsNull() {
            addCriterion("avatar is null");
            return (Criteria) this;
        }

        public Criteria andAvatarIsNotNull() {
            addCriterion("avatar is not null");
            return (Criteria) this;
        }

        public Criteria andAvatarEqualTo(String value) {
            addCriterion("avatar =", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarNotEqualTo(String value) {
            addCriterion("avatar <>", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarGreaterThan(String value) {
            addCriterion("avatar >", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarGreaterThanOrEqualTo(String value) {
            addCriterion("avatar >=", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarLessThan(String value) {
            addCriterion("avatar <", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarLessThanOrEqualTo(String value) {
            addCriterion("avatar <=", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarLike(String value) {
            addCriterion("avatar like", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarNotLike(String value) {
            addCriterion("avatar not like", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarIn(List<String> values) {
            addCriterion("avatar in", values, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarNotIn(List<String> values) {
            addCriterion("avatar not in", values, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarBetween(String value1, String value2) {
            addCriterion("avatar between", value1, value2, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarNotBetween(String value1, String value2) {
            addCriterion("avatar not between", value1, value2, "avatar");
            return (Criteria) this;
        }

        public Criteria andIsForbidIsNull() {
            addCriterion("is_forbid is null");
            return (Criteria) this;
        }

        public Criteria andIsForbidIsNotNull() {
            addCriterion("is_forbid is not null");
            return (Criteria) this;
        }

        public Criteria andIsForbidEqualTo(Integer value) {
            addCriterion("is_forbid =", value, "isForbid");
            return (Criteria) this;
        }

        public Criteria andIsForbidNotEqualTo(Integer value) {
            addCriterion("is_forbid <>", value, "isForbid");
            return (Criteria) this;
        }

        public Criteria andIsForbidGreaterThan(Integer value) {
            addCriterion("is_forbid >", value, "isForbid");
            return (Criteria) this;
        }

        public Criteria andIsForbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_forbid >=", value, "isForbid");
            return (Criteria) this;
        }

        public Criteria andIsForbidLessThan(Integer value) {
            addCriterion("is_forbid <", value, "isForbid");
            return (Criteria) this;
        }

        public Criteria andIsForbidLessThanOrEqualTo(Integer value) {
            addCriterion("is_forbid <=", value, "isForbid");
            return (Criteria) this;
        }

        public Criteria andIsForbidIn(List<Integer> values) {
            addCriterion("is_forbid in", values, "isForbid");
            return (Criteria) this;
        }

        public Criteria andIsForbidNotIn(List<Integer> values) {
            addCriterion("is_forbid not in", values, "isForbid");
            return (Criteria) this;
        }

        public Criteria andIsForbidBetween(Integer value1, Integer value2) {
            addCriterion("is_forbid between", value1, value2, "isForbid");
            return (Criteria) this;
        }

        public Criteria andIsForbidNotBetween(Integer value1, Integer value2) {
            addCriterion("is_forbid not between", value1, value2, "isForbid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}